import { apiCreator } from './lib';

const interest = apiCreator({
  userVipCards() {
    return {
      url: `https://qy-h5-dev.billbear.cn/api/interest/userVipCards`,
      method: 'GET',
      response: {} as Promise<{ vipCardId: string }[]>,
    };
  },
  userCurrent() {
    return {
      url: `https://qy-h5-dev.billbear.cn/api/user/userCurrent`,
      method: 'GET',
      response: {} as Promise<{ vipCardId: string }[]>,
    };
  },
});

interest.userVipCards('').then(r => {
  console.log(r);
});

interest.userCurrent('').then(r => {
  console.log(r);
});
interest.userVipCards('').then(r => {
  console.log(r);
});

interest.userCurrent('').then(r => {
  console.log(r);
});
interest.userVipCards('').then(r => {
  console.log(r);
});

interest.userCurrent('').then(r => {
  console.log(r);
});
interest.userVipCards('').then(r => {
  console.log(r);
});

interest.userCurrent('').then(r => {
  console.log(r);
});
